package ru.urfc.portal.model.catalogs;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlElement;

import ru.urfc.portal.model.SpectrObject;
import ru.urfc.portal.model.radio.DeviceSector.VisiorAcceptor;
import ru.urfc.portal.model.radio.DeviceSector.Visitor;

@Table(name = "portal_rclass")
@Entity
public class RayClass extends SpectrObject implements VisiorAcceptor {

	private String name;
	
	public RayClass() {
		super();
	}

	public RayClass(String name) {
		super();
		this.name = name;
	}

	@XmlElement
	public String getName() {
		return name;
	}
	
	@Override
	public String accept(Visitor visitor) {
		return visitor.accept(this);
	}

}
